<?php
$liu_yan = $_REQUEST['liu_yan'];
if(strlen($liu_yan) > 0)
{
	require_once("inc_all.php");
	if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
		$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
	else
		$ip = $_SERVER["REMOTE_ADDR"];
	date_default_timezone_set('Asia/Shanghai');
	$GLOBALS['db']->insert("insert into liu_yan (you_xiang,liu_yan,ip,sj_fang_wen) values ('".$GLOBALS['db']->he_fa($_REQUEST['you_xiang'])."','".$GLOBALS['db']->he_fa($liu_yan)."','".$ip."','".date("Y-m-d H:i:s")."')");
	echo '留言添加成功，感谢您的留言！&nbsp;&nbsp;<a href="http://www.sobible.limewebs.com/">返回首页</a>';
	exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>请您留言 - 圣经在线查找</title>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body>
		<form name="frm_ly" id="frm_ly" action="ly.php" method="post">
					您的邮箱地址：<input type="text" name="you_xiang" style="width:280px" maxlength="80"><br/>
					留言内容（意见或建议）：<br/>
					<textarea rows="10" name="liu_yan" cols="60"></textarea>
					<br/>
					<input type="submit" value="提交留言" name="savesubmit">
		</form>
</body>
</html>